//医生个人信息
var user = {};

mui.plusReady(function(){
    var userInfo = plus.storage.getItem("userInfo");
    userInfo = userInfo && JSON.parse(userInfo);
    var goodAt = userInfo.regdoctor.goodAt;
    if (goodAt) {
        userInfo.regdoctor.goodAtList = goodAt.split('#');
    }
    window.userInfo = userInfo;
});

// 更新用户信息缓存
user.refresh = function () {
    var userInfo = plus.storage.getItem("userInfo");
    window.userInfo = userInfo && JSON.parse(userInfo);
}
